﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Ext.Net;

namespace SalesManagement.Modules
{
    public partial class Navigator : UserControl
    {
        // protected void Page_Load(object sender, EventArgs e)
        //{

        //    treeNavigator.AutoScroll = false;
        //    Ext.Net.TreeNode root = new Ext.Net.TreeNode("Danh mục");
        //    root.Expanded = true;
        //    treeNavigator.Root.Add(root);

        //    List<Screen> screens = this.GetData();

        //    foreach (Screen screen in screens)
        //    {
        //        Ext.Net.TreeNode screenNode = new Ext.Net.TreeNode(screen.Name, Icon.Application);
        //        screenNode.Href = screen.Path;
        //        root.Nodes.Add(screenNode);
        //    }
        //}
        //public void treeNavigator_DblClick(object sender, DirectEventArgs e)
        //{
        //    treeNavigator.Title = "aaaaa";
        //}

        //public class Screen
        //{
        //    public Screen(string name)
        //    {
        //        this.Name = name;
        //    }
        //    public string Name { get; set; }
        //    public string Path { get; set; }

        //}


        //public List<Screen> GetData()
        //{
        //    List<Screen> lstScreen = new List<Screen>();
        //    for (int i = 0; i < 10; i++)
        //    {
        //        lstScreen.Add(new Screen("Screen" + 1));
        //    }
        //    return lstScreen;
        //}

    }
}